﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Plateforme_Stockage/PlateformeStockage.Master" AutoEventWireup="true" CodeBehind="BonsReceptions.aspx.cs" Inherits="DevelopmentPFR.Plateforme_Stockage.BonsReceptions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../Javascript/functions.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenu" runat="server">
    <div class="row">
        <div class="form-group">
            <div class="col-sm-6">
                <label for="inputNumCmd" class="control-label">NUMERO DE COMMANDE</label>
            </div>
            <div class="col-sm-4">
                <asp:TextBox runat="server" ID="refCommandeCa" CssClass="form-control" disabled="disabled" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label for="inputNumCmd" class="control-label">FOURNISSEUR</label>
            </div>
            <div class="col-sm-4">
                <asp:TextBox runat="server" ID="fournisseur" CssClass="form-control" disabled="disabled" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label for="inputNumCmd" class="control-label">DATE DE COMMANDE</label>
            </div>
            <div class="col-sm-4">
                <asp:TextBox runat="server" ID="dateCommande" CssClass="form-control" disabled="disabled" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label for="inputNumCmd" class="control-label">STATUT</label>
            </div>
            <div class="col-sm-2">
                <asp:TextBox runat="server" ID="statut" CssClass="form-control" disabled="disabled" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label for="inputNumCmd" class="control-label">Code Barre</label>
            </div>
            <div class="col-sm-2">
                <asp:TextBox runat="server" ID="codeBarre" CssClass="form-control" onblur="ActiverProduit(this.value)" />
            </div>
            <div class="col-sm-2">
                <asp:Button runat="server" ID="Valider" Text="VALIDER" CssClass="form-control" />
            </div>
        </div>
    </div>
    <div class="row">
        <asp:GridView
            ID="listeProduits"
            runat="server"
            AutoGenerateColumns="False"
            CssClass="table table-bordered table-responsive"
            OnRowDataBound="AssignJavaScriptToButton"
            HeaderStyle-BackColor="#B0C1D0">
            <Columns>
                <asp:BoundField DataField="refArticle" HeaderText="Référence" />
                <asp:BoundField DataField="designationArticle" HeaderText="Désignation" />
                <asp:TemplateField HeaderText="Quantité Recu" ItemStyle-Width="10%">
                    <ItemTemplate>
                        <asp:Button ID="quantiteRecu" runat="server" BackColor="#808080" Enabled="False" Width="70px" MaxLength="3" OnClientClick="pressButton(); return false;" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="resteRecevoir" HeaderText="Quantité restante" />
                <asp:BoundField DataField="quantiteAttendu" HeaderText="Quantité Attendue" />
                <asp:BoundField DataField="prixHtProduit" HeaderText="Prix HT" />
            </Columns>
        </asp:GridView>
    </div>
    <div class="row">
        <div class="form-group">
            <div class="col-sm-6">
                <label for="inputPrixTotal" class="control-label">PRIX TOTAL HT</label>
            </div>
            <div class="col-sm-4">
                <asp:TextBox runat="server" ID="prixTotalHT" CssClass="form-control" disabled="disabled" />
            </div>
        </div>
    </div>
</asp:Content>
